package com.atguigu.javase.thread;

public class CounterTest {

    public static void main(String[] args) {
        Runnable runner = new Counter();

        Thread thread1 = new Thread(runner);
        thread1.setName("子线程1");
        thread1.start();

        Thread thread2 = new Thread(runner);
        thread2.setName("子线程2");
        thread2.start();


    }
}
